package com.topisv.tms.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.shiro.SecurityUtils;

import com.topisv.tms.service.account.ShiroDbRealm.ShiroUser;

/**
 * 区域
 */
@Entity
@Table(name = "process_log")
public class ProcessLog extends IdEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	public ProcessLog(String opeType,String opeContent){
		this.opeType = opeType;
		this.opeContent = opeContent;
		ShiroUser curUser = (ShiroUser) SecurityUtils.getSubject().getPrincipal();
		this.opeUuid = curUser.jobuuid;
		this.opeTime = new Date();
	}
	private String opeType;
	private String opeUuid;
	private Date opeTime;
	private String opeContent;
	public String getOpeType() {
		return opeType;
	}
	public void setOpeType(String opeType) {
		this.opeType = opeType;
	}
	public String getOpeUuid() {
		return opeUuid;
	}
	public void setOpeUuid(String opeUuid) {
		this.opeUuid = opeUuid;
	}
	public Date getOpeTime() {
		return opeTime;
	}
	public void setOpeTime(Date opeTime) {
		this.opeTime = opeTime;
	}
	public String getOpeContent() {
		return opeContent;
	}
	public void setOpeContent(String opeContent) {
		this.opeContent = opeContent;
	}
	
	
	
}